import java.util.Scanner;

public class Demo03 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入一个数");
        int a = sc.nextInt();
        int sum = 0;
        for (int i =1;i<a;i++){
            if (a%i==0){
                sum+=i;
            }
        }
        if (sum==a){
            System.out.println("是完数");
        }else{
            System.out.println("不是完数");
        }
    }
}
